import 'package:base_flutter/base_flutter.dart';
import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:ls_work/viewmodel/service_order/service_order_statistics_view_model.dart';

class ServiceOrderStatisticsPage extends BaseStatefulMvvmWidget{
  @override
  State<StatefulWidget> createState() => _ServiceOrderStatisticsState();

}

class _ServiceOrderStatisticsState extends BaseMvvmState<ServiceOrderStatisticsViewModel,ServiceOrderStatisticsPage>{
  @override
  Widget buildLoadingContentView() {
    return ListView(
      children: [
        ///统计数量
        viewModel.topStatisticsWidget(),
        ///工单状态
        viewModel.orderStatusWidget(),
        ///工单数量
        viewModel.monthOrderNum()
      ],
    );
  }

  @override
  Widget buildRootView(BuildContext context, Widget loadingContentWidget) {
    return loadingContentWidget;
  }

  @override
  ServiceOrderStatisticsViewModel createViewModel() {
    return ServiceOrderStatisticsViewModel(context);
  }

  @override
  void onRetryClick() {
    // TODO: implement onRetryClick
  }

}